package com.heqiang.client;

import com.heqiang.fallback.MyFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

//服务熔断回调
//@FeignClient(name = ClientServerList.SPRINGCLOUD_SERVER_PROVIDER,fallback = MyFallback.class)
//服务熔断获取远程异常信息
//@FeignClient(name = ClientServerList.SPRINGCLOUD_SERVER_PROVIDER, fallbackFactory = MyFallbackFactory.class)
@FeignClient(value = ClientServerList.SPRINGCLOUD_SERVER_PROVIDER)
public interface AdminClient {
    //返回字符串测试
    @RequestMapping("/admin/get")
    public String get();
}
